package com.bnzj.cloud.business.core.service;

import com.bnzj.cloud.business.core.persistence.entity.Group;
import com.bnzj.cloud.business.core.persistence.entity.SysUser;
import com.bnzj.cloud.business.core.persistence.repository.GroupRepository;
import com.bnzj.core.persistence.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author 富
 * @date 2020/5/9 9:23
 */
@Service
public class GroupService extends BaseService<GroupRepository,Group,Long> {
    @Autowired
    private GroupRepository groupRepository;


    /**
     * 查询所有
     * @return
     */
    public List<Group> findAllGroup(){
        final List<Group> all = groupRepository.findAll();
        return all;
    }






}
